============================= test session starts ==============================
platform linux -- Python 3.14.0, pytest-8.4.2, pluggy-1.6.0
rootdir: /tmp/pytest-of-runner/pytest-0/test_warnings0
collected 1 item

f.py .                                                                   [100%]

=============================== warnings summary ===============================
f.py::test
  /tmp/pytest-of-runner/pytest-0/test_warnings0/f.py:3: UserWarning: WARNING!
    warnings.warn(UserWarning("WARNING!"))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================= 1 passed, 1 warning in 0.00s =========================